/**
 * Copyright(c) 2014 Xunton Solutions
 *
 * History:
 *   15-12-8 下午1:02 Created by dwzhang
 */
package com.jade.modules.message.sms;

import javax.persistence.*;

import com.jade.modules.message.common.AbstractMessageJournal;

/**
 * 短信日志。
 *
 * @author <a href="mailto:dwzhang@xunton.com">dwzhang</a> 
 * @version 1.0 15-12-8 下午1:02
 */
@Entity
@Table (name = "MODULE_JOURNAL_SMS")
public class SmsJournal
        extends AbstractMessageJournal
{
    public static final String NAME = "journal_sms";
    public static final String MT = "mt";
    public static final String MO = "mo";
    //只是是接收还是发送 MT-发送 MO-接收
    @Column (name = "direction", nullable = false, length = 8)
    protected String direction;
    @Id
    @GeneratedValue (generator = "MODULE_SEQ_JOURNAL_SMS")
    @SequenceGenerator (name = "MODULE_SEQ_JOURNAL_SMS", sequenceName = "MODULE_SEQ_JOURNAL_SMS")
    private long id;

    public SmsJournal()
    {
        super(NAME);
    }

    public long getId()
    {
        return id;
    }

    public void setId(long id)
    {
        this.id = id;
    }

    public String getDirection()
    {
        return direction;
    }

    public void setDirection(String direction)
    {
        this.direction = direction;
    }
}
